package cn.nawang.ebeim.client.service;

import cn.nawang.ebeim.client.process.Process;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.ArrayList;
import java.util.List;

/**
 * 负责与API服务器交互
 * Created by GanJc on 2015-12-28 16:46
 */
public class ApiService {

    private final static Logger LOG = LoggerFactory.getLogger(ApiService.class);

    private ApiService() {}

    private static ApiService apiService = new ApiService();

    public static ApiService getInstance() {
        return apiService;
    }

    public List<Process> getUploadProcesses(){
        LOG.info("从api获取数据源备份列表数据,封装成数据源备份任务");
        //TODO
        List<Process> list = new ArrayList<Process>();
        return list ;
    }



}
